using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace PlugNT.Site.Web
{
    public class Global : System.Web.HttpApplication
    {

        protected void Application_Start(object sender, EventArgs e)
        {
    

            PlugNT.Cms.Custom.WebConfig.Init();

            PlugNT.Cms.Page.AutoUpdater.Start();

        }

        protected void Session_Start(object sender, EventArgs e)
        {

            PlugNT.Cms.BLL.User.AddOnline();
        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {
            
        }

        protected void Session_End(object sender, EventArgs e)
        {

            PlugNT.Cms.BLL.User.DelOnline();

        }

        protected void Application_End(object sender, EventArgs e)
        {
            PlugNT.Cms.BLL.User.ReSetOnlineUser();
            PlugNT.Cms.BLL.User.ReSetOnline();
        }

    }
}

